Frameworks for Reasoning about Syntax that Utilize Quotation and Evaluation

نویسندگان

  • William M. Farmer
  • Pouya Larjani
چکیده

It is often useful, if not necessary, to reason about the syntactic structure of an expression in an interpreted language (i.e., a language with a semantics). This paper introduces a mathematical structure called a syntax framework that is intended to be an abstract model of a system for reasoning about the syntax of an interpreted language. Like many concrete systems for reasoning about syntax, a syntax framework contains a mapping of expressions in the interpreted language to syntactic values that represent the syntactic structures of the expressions; a language for reasoning about the syntactic values; a mechanism called quotation to refer to the syntactic value of an expression; and a mechanism called evaluation to refer to the value of the expression represented by a syntactic value. A syntax framework provides a basis for integrating reasoning about the syntax of the expressions with reasoning about what the expressions mean. The notion of a syntax framework is used to discuss how quotation and evaluation can be built into a language and to define what quasiquotation is. Several examples of syntax frameworks are presented. ∗This research was supported by NSERC. †Address: Department of Computing and Software, McMaster University 1280 Main Street West, Hamilton, Ontario L8S 4K1, Canada. E-mail: [email protected], [email protected].

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Formalization of Syntax-Based Mathematical Algorithms Using Quotation and Evaluation

Algorithms like those for differentiating functional expressions manipulate the syntactic structure of mathematical expressions in a mathematically meaningful way. A formalization of such an algorithm should include a specification of its computational behavior, a specification of its mathematical meaning, and a mechanism for applying the algorithm to actual expressions. Achieving these goals r...

متن کامل

Simple Type Theory with Undefinedness, Quotation, and Evaluation

This paper presents a version of simple type theory called Q uqe 0 that is based on Q0, the elegant formulation of Church’s type theory created and extensively studied by Peter B. Andrews. Q uqe 0 directly formalizes the traditional approach to undefinedness in which undefined expressions are treated as legitimate, nondenoting expressions that can be components of meaningful statements. Q uqe 0...

متن کامل

Incorporating Quotation and Evaluation into Church's Type Theory: Syntax and Semantics

cttqe is a version of Church’s type theory that includes quotation and evaluation operators that are similar to quote and eval in the Lisp programming language. With quotation and evaluation it is possible to reason in cttqe about the interplay of the syntax and semantics of expressions and, as a result, to formalize syntax-based mathematical algorithms. We present the syntax and semantics of c...

متن کامل

Incorporating Quotation and Evaluation Into Church's Type Theory

cttqe is a version of Church’s type theory that includes quotation and evaluation operators that are similar to quote and eval in the Lisp programming language. With quotation and evaluation it is possible to reason in cttqe about the interplay of the syntax and semantics of expressions and, as a result, to formalize syntax-based mathematical algorithms. We present the syntax and semantics of c...

متن کامل

Meaning Formulas for Syntax - Based Mathematical Algorithms ∗ Extended

Many symbolic algorithms work by manipulating mathematical expressions in a mathematically meaningful way. A meaning formula for such an algorithm is a statement that captures the mathematical relationship between the input and output expressions of the algorithm. For example, consider a symbolic differentiation algorithm that takes as input an expression (say x), repeatedly applies syntactic d...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1308.2149  شماره 

صفحات  -

تاریخ انتشار 2013